<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=878037
-->
<head>
  <title>Test for Bug 878037</title>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=878037">Mozilla Bug 878037</a>
<p id="display"></p>
<div>
  <!-- transparent-animation.gif from the gif reftests. -->
  <img id="animated" src="">
</div>
<pre id="test">
<script type="application/javascript">
/** Test for Bug 878037**/

SimpleTest.waitForExplicitFinish();

window.onload = function() {
  var img = document.getElementById("animated");
  var content =  SpecialPowers.wrap(img).QueryInterface(SpecialPowers.Ci.nsIImageLoadingContent);

  var request = content.getRequest(SpecialPowers.Ci.nsIImageLoadingContent.CURRENT_REQUEST);

  var staticReq = request.getStaticRequest();
  var clone = staticReq.clone(null);

  ok(true, "hooray, we didn't crash!");

  SimpleTest.finish();
}

</script>
</pre>
</body>
</html>
